﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>Javascript algorithm benchmarker</title>
		<!-- YUI --> 
		<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/yuiloader/yuiloader-min.js"></script>	
		<script type="text/javascript"> 
		// Instantiate and configure YUI Loader: 
		(function() { 
			var loader = new YAHOO.util.YUILoader({ 
				base: "", 
				require: ["event","yahoo","yuitest"], 
				loadOptional: false, 
				combine: true, 
				filter: "MIN", 
				allowRollup: true, 
				onSuccess: function() {
					// Load tests
					var testLoader = new YAHOO.util.YUILoader(); 
					testLoader.addModule({
						name: "tests",
						type: "js",
						fullpath: "benchmark.js.test.js", 
						varName: "benchmark.js.test"
					});	
					testLoader.require("tests");
					testLoader.onSuccess = runTestSuite;
					testLoader.insert();
				} 
			}); 
	 
			loader.insert(); 
		})(); 

		</script> 

		<script type="text/javascript" src="../benchmark.js"></script>	
		<script type="text/javascript">
			runTestSuite = function() {
				YAHOO.util.Event.onDOMReady(function (){
				
					YAHOO.yuitest.Suite = new YAHOO.tool.TestSuite("Javascript algorithm benchmarker test suite");

					YAHOO.yuitest.Suite.add(YAHOO.yuitest.AlgorithmTest);
					YAHOO.yuitest.Suite.add(YAHOO.yuitest.InputGeneratorTest);
					YAHOO.yuitest.Suite.add(YAHOO.yuitest.BenchmarkResultsTest);
					YAHOO.yuitest.Suite.add(YAHOO.yuitest.RunningTimeInfoTest);
					YAHOO.yuitest.Suite.add(YAHOO.yuitest.BuildChartUrlTest);
					YAHOO.yuitest.Suite.add(YAHOO.yuitest.BuildChartUrlMultipleAlgorithmsTest);
					YAHOO.yuitest.Suite.add(YAHOO.yuitest.BenchmarkTest);

					//create the logger
					var logger = new YAHOO.tool.TestLogger();
					
					//add the test suite to the runner's queue
					YAHOO.tool.TestRunner.add(YAHOO.yuitest.Suite);

					//run the tests
					YAHOO.tool.TestRunner.run();
				});
			}
		</script>
		<style type="text/css">
			body {
				font-size:9pt;
			}
			.fail {
				color:red;
				font-weight:bold;
				font-size: xx-large;
			}
			.pass {
				font-weight:bold;
				color:green;
				font-size: x-large;
			}
		</style>
	</head>
	<body>

	</body>
</html>